<!DOCTYPE html>
<html>
    <head>
        <title>VisitorToolEntityDisplay</title>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <link rel="stylesheet" type="text/css" href="../node_modules/normalize.css/normalize.css">
        <script type="text/javascript" src="../node_modules/jquery/dist/jquery.min.js"></script>
        <script type="text/javascript" src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
        <link rel="stylesheet" type="text/css" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="../node_modules/font-awesome/css/font-awesome.min.css">
        <script src="../node_modules/incubator-echarts-4.7.0/incubator-echarts-4.7.0/dist/echarts.min.js"></script>
        <link rel="shortcut icon" href="../IMG/favicon.ico"> 
    </head> 
    <body>
        <!--悬浮按钮-->
        <div class="dangling-box">
            <a id="danglingBack" style="display: none;"><i class="dangling-icon fa fa-arrow-up" aria-hidden="true"></i></a>
            <a id="danglingShow"><i class="dangling-icon fa fa-pie-chart" aria-hidden="true"></i></a>
        </div>
        <!-- 主体 -->
        <div class="main">
            <div class="page-header">
                <h2>夹具实体信息列表</h2>
                <!-- 操作框 -->
                <div class="oper-box">
                    <!-- 查找 -->
                    <div class="search-box input-group">
                        <div class="input-group-btn">
                            <button type="button" class="btn btn-default dropdown-toggle" id="searchTypeBtn" data-toggle="dropdown">
                                查找方式
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu">
                                <li><a class="pointer-type" onclick="chooseSearchType(this);">按使用次数</a></li>
                                <li><a class="pointer-type" onclick="chooseSearchType(this);">按夹具状态</a></li>
                                <li><a class="pointer-type" onclick="chooseSearchType(this);">展示所有</a></li>
                            </ul>
                        </div>
                        <input type="text" class="form-control" id="paramInput">
                        <span class="input-group-btn">
                            <button class="btn btn-default" type="button" id="searchBtn">查找</button>
                        </span>
                    </div>
                </div>                
            </div>
            <!-- 实体展示 -->
            <div class="table-box table-responsive">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>夹具代码</th>
                            <th>夹具序列号</th>
                            <th>入库时间</th>
                            <th>已使用次数</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody id="definitionTbody"></tbody>
                </table>
            </div>
            <!-- 分页框 -->
            <div class="setPageDiv">
                <ul class="pagination" id="paginationToolEntity"></ul>
            </div>
        </div>
        
        <!-- InfoModal -->
        <div class="modal fade" id="InfoModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">夹具实体详细信息</h4>
                    </div>
                    <div class="modal-body" id="modal_body">
                        <div class="infoModal-content">
                            <div class="form-group">
                                <label class="control-label" for="Code">夹具代码</label>
                                <p class="attr" id="Code"></p>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="SeqID">夹具序列号</label>
                                <p class="attr" id="SeqID"></p>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="Buyoff">夹具buyoff编号</label>
                                <p class="attr" id="Buyoff"></p>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="RegDate">入库时间</label>
                                <p class="attr" id="RegDate"></p>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="UsedCount">已使用次数</label>
                                <p class="attr" id="UsedCount"></p>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="State">状态</label>
                                <p class="attr" id="State"></p>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="BillNo">采购单据号</label>
                                <p class="attr" id="BillNo"></p>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="StoreHouse">存放库位</label>
                                <p class="attr" id="StoreHouse"></p>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="LastTestTime">上次点检时间</label>
                                <p class="attr" id="LastTestTime"></p>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="TotalUsedTime">总使用时长</label>
                                <p class="attr" id="TotalUsedTime"></p>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="Image">夹具图片</label>
                                <div class="img-box"><img id="Image"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 当前夹具状态饼图 -->
        <div class="modal fade bs-example-modal-sm" id="ToolStateChartModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">当前夹具一览</h4>
                    </div>
                    <div class="modal-body" id="modal_body">
                        <div id="ToolStateChart" style="height: 250px; width: 550px;"></div>
                    </div>
                </div>
            </div>
        </div>
        
        <link href="../CSS/ToolEntityDisplay.css" rel="stylesheet" type="text/css">
        <script src="../node_modules/jqPaginator-2.0.2/dist/jq-paginator.js"></script>
        <script src="../JS/VisitorToolEntityDisplay.js"></script>

    </body>
</html>